<%@ page contentType="text/html;charset=UTF-8" language="java" %><%@page isELIgnored="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link href="static/css/style.min.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="static/js/jquery.min.js"></script>
</head>
<body>
<%--${list}--%>
<div>
    <table>
        <thead>
        <tr>
            <th>发布人</th>
            <th>新闻标题</th>
            <th>新闻类型</th>
            <th>发布时间</th>
            <th>发布内容</th>
        </tr>
        </thead>
        <tbody>
        <form action="allnews" method="post">
        <c:forEach var="n" items="${list}">
            <tr>
                <td>${n.npeople}</td>
                <td>${n.ntitle}</td>
                <td>${n.ntype}</td>
                <td>${n.ndate}</td>
                <td>${n.nmsg}</td>
                <td>
                    <a href="${pageContext.request.contextPath}/deletenews?id=${n.nid}">删除</a>
            </tr>
        </c:forEach>
            <a href="${pageContext.request.contextPath}/newsadd.jsp">添加</a>
            <input type="submit" value="刷新新闻列表">
        </form>
        </tbody>
    </table>


</div>


</body>
</html>

</body>
</html>
